<?php 

require 'Admin/Model/Model.php';
//require 'common/ConnDB.php';
class SessionModel extends Model{

function __Construct(){
	parent::__Construct();
}



function session($username,$pwd){
  $username = $_POST["username"];
  $pwd = $_POST["password"];
  $sql = "select * from admins where adminname='".$username."' and password='".$pwd."'"; 
  /*var_dump($sql);
  exit;*/
  $result=$this->fetch_one($sql);

  return $result;
}

}



?>